package com.learn._02notice.controller;

import com.learn._02notice.base.response.JsonResult;
import com.learn._02notice.pojo.dto.UserLoginParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.spring.web.json.Json;

@RestController
@Slf4j
@Api(tags = "02.用户管理模块")
@RequestMapping("/v1/user/")
public class UserController {
    @PostMapping("login")
    @ApiOperation("用户登录")
    public JsonResult login(@RequestBody UserLoginParam userLoginParam){
        log.debug("用户名：{}，密码：{}",userLoginParam.getUsername(),userLoginParam.getPassword());
        return JsonResult.ok();
    }
}
